﻿NExt.form.MoneyField = function(config) {
    
    if (Ext.isFunction(config.validator)) {
        this.decoratedValidator = config.validator;
        config.validator = function(value) {
            var value = this.parseValue(value);
            if (value === true) {
                return true;
            }
            return this.decoratedValidator(value);
        };
    };

    NExt.form.MoneyField.superclass.constructor.call(this, config);
};
